<?php

namespace backend\models;

use Yii;
use common\models\UserInfo;
use yii\helpers\ArrayHelper;
use yii\db\ActiveRecord;
use backend\models\Qr;
use backend\models\PayTrade;

class MakemoneyLog extends \yii\db\ActiveRecord
{
 
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'log_pay_makemoney';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {    	
        return [
            [['id','p_id','uid','type','pay_date','createtime','state'], 'integer'],
            [['alipay_order_id','wx_partner_trade_no','wx_payment_no','msg'], 'string'],
        ];
    }
    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'p_id' => Yii::t('app','提现id'),
            'uid' => Yii::t('app','用户id'),
            'type' => Yii::t('app','类型'),
            'pay_date' => Yii::t('app','支付时间'),
            'createtime' => Yii::t('app','创建时间'),
            'alipay_order_id' => Yii::t('app','支付宝订单号'),
        	'wx_partner_trade_no'=>Yii::t('app','微信商户订单号'),
            'wx_payment_no'=>'微信支付订单号',
        ];
    }
    
}
